package cn.iocoder.an.module.mold.service.equipmentkeepsetting;

import cn.iocoder.an.framework.common.pojo.PageResult;
import cn.iocoder.an.module.business.controller.admin.equipmentmanage.vo.ImportRespVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeepsetting.vo.*;
import cn.iocoder.an.module.mold.dal.dataobject.equipmentkeepsetting.EquipmentKeepSettingDO;
import jakarta.validation.Valid;

import java.util.List;

/**
 * 保养项设置 Service 接口
 *
 * @author zzy
 */
public interface EquipmentKeepSettingService {

    /**
     * 创建保养项设置
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createEquipmentKeepSetting(@Valid EquipmentKeepSettingSaveReqVO createReqVO);

    /**
     * 更新保养项设置
     *
     * @param updateReqVO 更新信息
     */
    void updateEquipmentKeepSetting(@Valid EquipmentKeepSettingSaveReqVO updateReqVO);

    /**
     * 删除保养项设置
     *
     * @param id 编号
     */
    void deleteEquipmentKeepSetting(Long id);

    /**
    * 批量删除保养项设置
    *
    * @param ids 编号
    */
    void deleteEquipmentKeepSettingListByIds(List<Long> ids);

    /**
     * 获得保养项设置
     *
     * @param id 编号
     * @return 保养项设置
     */
    EquipmentKeepSettingDO getEquipmentKeepSetting(Long id);

    /**
     * 获得保养项设置分页
     *
     * @param pageReqVO 分页查询
     * @return 保养项设置分页
     */
    PageResult<EquipmentKeepSettingDO> getEquipmentKeepSettingPage(EquipmentKeepSettingPageReqVO pageReqVO);

    PageResult<EquipmentKeepSettingDO> getEquipmentKeepSettingPageNew(EquipmentKeepSettingPageReqVO pageReqVO);



    List<EquipmentKeepSettingDO> getEquipmentKeepSettingAllList(EquipmentKeepSettingPageReqVO pageReqVO);


    /**
     * 批量导入
     *
     * @param list     导入数据
     * @param isUpdateSupport 是否支持更新
     * @return 导入结果
     */
    ImportRespVO importList(List<EquipmentSettingImportExcelVO> list, boolean isUpdateSupport);


    ImportRespVO importListBind(List<EquipmentSettingBindImportExcelVO> list, boolean isUpdateSupport);




    /**
     * 根据Ids获取保养项设置
     *
     * @param ids 编号
     */
    List<EquipmentKeepSettingRespVO>  getEquipmentKeepSettingListByIds(List<Long> ids);

}